﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using FairyGUI;
using FairyGUI.Utils;

public class UI_TipWindow : GComponent
{
    public GTextField m_content;
    public GButton m_closeButton;
    public GGraph m_contentArea;
    public GGraph m_dragArea;
    public const string URL = "ui://v8xcewcja92e28";
    public static UI_TipWindow CreateInstance()
    {
        return (UI_TipWindow)UIPackage.CreateObject("Login", "TipWindow");
    }

    public override void ConstructFromXML(XML xml)
    {
        base.ConstructFromXML(xml);

        m_content = (GTextField)GetChild("content");
        m_closeButton = (GButton)GetChild("closeButton");
        m_contentArea = (GGraph)GetChild("contentArea");
        m_dragArea = (GGraph)GetChild("dragArea");
    }

    public void Message(string message)
    {
        m_content.text = message;
    }

}
